From bf16be253fe561dc44610a154a24f47324d7ca9c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 27 Dec 2005 00:49:24 +0000 Subject: [PATCH] Use the slice allocator for some other small auxiliary structures as well. 2005-12-26 Matthias Clasen * gtk/gtktextbtree.c: Use the slice allocator for some other small auxiliary structures as well. --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ gtk/gtktextbtree.c | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f53799391f..45769f85a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-12-26 Matthias Clasen + * gtk/gtktextbtree.c: Use the slice allocator for some other small + auxiliary structures as well. + * gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify docs. (#324996) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index f53799391f..45769f85a4 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2005-12-26 Matthias Clasen + * gtk/gtktextbtree.c: Use the slice allocator for some other small + auxiliary structures as well. + * gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify docs. (#324996) diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index 64a4e34b2d..d69357a69e 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -1660,7 +1660,7 @@ static IterStack* iter_stack_new (void) { IterStack *stack; - stack = g_new (IterStack, 1); + stack = g_slice_new (IterStack); stack->iters = NULL; stack->count = 0; stack->alloced = 0; @@ -1697,7 +1697,7 @@ static void iter_stack_free (IterStack *stack) { g_free (stack->iters); - g_free (stack); + g_slice_free (IterStack, stack); } static void -- 2.30.2